package nz.ac.massey.spidernetpn.database;

import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;

import edu.uci.ics.jung.graph.DirectedGraph;
import nz.ac.massey.spidernetpn.graph.*;

public interface GraphDatabaseInterface {
	public List getListOfStoredGraphs(); //Strings for now
	//public boolean saveGraph(String graphName, SPNGraph graph)throws Exception;
	//public SPNGraph loadGraph(String graphName) throws IOException;
	
	public boolean saveGraph(String name, DirectedGraph<URL,Integer> graph) throws Exception;
	public DirectedGraph<URL,Integer> loadCustomGraph(String name) throws IOException;

}
